package com.zofer.study.factory.abstractfactory;
/**
 * @description 抽象工厂模式
 * @date: 2020/9/29 19:35
 */
public class Main {

    public static void main(String[] args) {
        Factory packageAFactory = new PackageAFactory();
        packageAFactory.createCake().makeCake();
        packageAFactory.createDrink().makeDrink();
        System.out.println("================");
        Factory packageBFactory = new PackageBFactory();
        packageBFactory.createCake().makeCake();
        packageBFactory.createDrink().makeDrink();
    }
}
